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 223604 Details for
Bug 393554
Mark unshared EMFStore projects
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]
marks unshared projects
unshared_decorator.patch (text/plain), 3.92 KB, created by
Tobias Verhoeven
on 2012-11-15 08:44:44 EST
(
hide
)
Description:
marks unshared projects
Filename:
MIME Type:
Creator:
Tobias Verhoeven
Created:
2012-11-15 08:44:44 EST
Size:
3.92 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.emf.ecp.emfstore.ui >diff --git plugin.xml plugin.xml >index f99e755..01139e5 100644 >--- plugin.xml >+++ plugin.xml >@@ -288,6 +288,22 @@ > point="org.eclipse.ui.decorators"> > <decorator > adaptable="true" >+ class="org.eclipse.emf.ecp.emfstore.internal.ui.decorator.EMFStoreUnsharedDecorator" >+ id="org.eclipse.emf.ecp.emfstore.ui.decorators.EMFStoreUnsharedDecorator" >+ label="EMFStoreUnshared Decorator" >+ lightweight="true" >+ state="true"> >+ <enablement> >+ <objectClass >+ name="org.eclipse.emf.ecp.core.ECPProject"> >+ </objectClass> >+ </enablement> >+ <description> >+ If the project is not shared. >+ </description> >+ </decorator> >+ <decorator >+ adaptable="true" > class="org.eclipse.emf.ecp.emfstore.internal.ui.decorator.EMFStoreDirtyDecorator" > id="org.eclipse.emf.ecp.emfstore.ui.decorators.EMFStoreDirtyDecorator" > label="EMFStoreDirty Decorator" >diff --git src/org/eclipse/emf/ecp/emfstore/internal/ui/decorator/EMFStoreUnsharedDecorator.java src/org/eclipse/emf/ecp/emfstore/internal/ui/decorator/EMFStoreUnsharedDecorator.java >new file mode 100644 >index 0000000..7d76d6b >--- /dev/null >+++ src/org/eclipse/emf/ecp/emfstore/internal/ui/decorator/EMFStoreUnsharedDecorator.java >@@ -0,0 +1,80 @@ >+/******************************************************************************* >+ * Copyright (c) 2011-2012 EclipseSource Muenchen GmbH. >+ * >+ * 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: >+ ******************************************************************************/ >+package org.eclipse.emf.ecp.emfstore.internal.ui.decorator; >+ >+import org.eclipse.emf.ecp.core.ECPProject; >+import org.eclipse.emf.ecp.emfstore.core.internal.EMFStoreProvider; >+import org.eclipse.emf.ecp.emfstore.internal.ui.Activator; >+import org.eclipse.emf.ecp.spi.core.InternalProject; >+ >+import org.eclipse.jface.viewers.IDecoration; >+import org.eclipse.jface.viewers.ILabelProviderListener; >+import org.eclipse.jface.viewers.ILightweightLabelDecorator; >+ >+/** >+ * @author Tobias Verhoeven >+ */ >+public class EMFStoreUnsharedDecorator implements ILightweightLabelDecorator { >+ >+ private String imagePath = "icons/unshared.png"; >+ >+ /** >+ * {@inheritDoc} >+ * >+ * @see org.eclipse.jface.viewers.ILightweightLabelDecorator#decorate(java.lang .Object, >+ * org.eclipse.jface.viewers.IDecoration) >+ * @param element >+ * element >+ * @param decoration >+ * decoration >+ */ >+ public void decorate(Object element, IDecoration decoration) { >+ if (element instanceof ECPProject) { >+ if (!EMFStoreProvider.INSTANCE.getProjectSpace((InternalProject) element).isShared()) { >+ decoration.addOverlay(Activator.getImageDescriptor(imagePath), IDecoration.BOTTOM_LEFT); >+ } >+ } >+ } >+ >+ /** >+ * {@inheritDoc} >+ * >+ * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse. jface.viewers.ILabelProviderListener) >+ */ >+ public void addListener(ILabelProviderListener listener) { >+ } >+ >+ /** >+ * {@inheritDoc} >+ * >+ * @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose() >+ */ >+ public void dispose() { >+ } >+ >+ /** >+ * . {@inheritDoc} >+ * >+ * @see org.eclipse.jface.viewers.IBaseLabelProvider#isLabelProperty(java.lang .Object, java.lang.String) >+ */ >+ public boolean isLabelProperty(Object element, String property) { >+ return false; >+ } >+ >+ /** >+ * . {@inheritDoc} >+ * >+ * @see org.eclipse.jface.viewers.IBaseLabelProvider#removeListener(org.eclipse >+ * .jface.viewers.ILabelProviderListener) >+ */ >+ public void removeListener(ILabelProviderListener listener) { >+ } >+}
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
Flags:
eneufeld
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 393554
: 223604