Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 142126 Details for
Bug 281121
[design] make logo switching easier
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch for org.eclipse.rap.examples
logoForExamplesDemo (text/plain), 2.81 KB, created by
Holger Staudacher
on 2009-07-21 08:51:24 EDT
(
hide
)
Description:
Patch for org.eclipse.rap.examples
Filename:
MIME Type:
Creator:
Holger Staudacher
Created:
2009-07-21 08:51:24 EDT
Size:
2.81 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.examples >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.ui/org.eclipse.rap.examples/plugin.xml,v >retrieving revision 1.2 >diff -u -r1.2 plugin.xml >--- plugin.xml 24 Jun 2009 09:23:20 -0000 1.2 >+++ plugin.xml 21 Jul 2009 12:50:23 -0000 >@@ -61,5 +61,17 @@ > </presentationFactory> > </branding> > </extension> >+ <extension >+ point="org.eclipse.rap.ui.layouts"> >+ <layout >+ id="org.eclipse.rap.design.example.business.layout" >+ name="Business Layout Blue"> >+ <layoutSet >+ class="org.eclipse.rap.examples.internal.design.LogoInitializer" >+ id="org.eclipse.rap.design.example.business.layoutset.logo" >+ name="Logo"> >+ </layoutSet> >+ </layout> >+ </extension> > > </plugin> >Index: src/org/eclipse/rap/examples/internal/design/LogoInitializer.java >=================================================================== >RCS file: src/org/eclipse/rap/examples/internal/design/LogoInitializer.java >diff -N src/org/eclipse/rap/examples/internal/design/LogoInitializer.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/rap/examples/internal/design/LogoInitializer.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,38 @@ >+/******************************************************************************* >+* Copyright (c) 2009 EclipseSource and others. All rights reserved. This >+* program and the accompanying materials are made available under the terms of >+* the Eclipse Public License v1.0 which accompanies this distribution, and is >+* available at http://www.eclipse.org/legal/epl-v10.html >+* >+* Contributors: >+* EclipseSource - initial API and implementation >+*******************************************************************************/ >+package org.eclipse.rap.examples.internal.design; >+ >+import org.eclipse.rap.ui.interactiondesign.layout.model.ILayoutSetInitializer; >+import org.eclipse.rap.ui.interactiondesign.layout.model.LayoutSet; >+import org.eclipse.swt.layout.FormAttachment; >+import org.eclipse.swt.layout.FormData; >+ >+ >+public class LogoInitializer implements ILayoutSetInitializer { >+ >+ public static final String SET_ID >+ = "org.eclipse.rap.design.example.business.layoutset.logo"; >+ >+ public static final String LOGO = "header.logo"; >+ public static final String LOGO_POSITION = "header.logo.position"; >+ >+ public LogoInitializer() { >+ } >+ >+ public void initializeLayoutSet( LayoutSet layoutSet ) { >+ layoutSet.addImagePath( LOGO, "icons/logo.png" ); >+ >+ // positions >+ FormData fdLogo = new FormData(); >+ fdLogo.right = new FormAttachment( 100, -75 ); >+ fdLogo.top = new FormAttachment( 0, 32 ); >+ layoutSet.addPosition( LOGO_POSITION, fdLogo ); >+ } >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 281121
: 142126 |
142127
|
142128