From: <cs-...@li...> - 2011-10-26 20:39:28
|
details: http://cs-studio.hg.sourceforge.net/hgweb/cs-studio/cs-studio//hgrepo/c/cs/cs-studio/cs-studio/rev/dba08e71a492 changeset: 12760:dba08e71a492 user: xihui <ch...@or...> date: Wed Oct 26 16:30:31 2011 -0400 description: WebOPI: single sourcing adapting diffstat: applications/plugins/org.csstudio.opibuilder.rap/src/org/csstudio/opibuilder/util/ResourceUtilSSHelperImpl.java | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diffs (35 lines): diff -r 4a315ca5ab9e -r dba08e71a492 applications/plugins/org.csstudio.opibuilder.rap/src/org/csstudio/opibuilder/util/ResourceUtilSSHelperImpl.java --- a/applications/plugins/org.csstudio.opibuilder.rap/src/org/csstudio/opibuilder/util/ResourceUtilSSHelperImpl.java Wed Oct 26 16:18:55 2011 -0400 +++ b/applications/plugins/org.csstudio.opibuilder.rap/src/org/csstudio/opibuilder/util/ResourceUtilSSHelperImpl.java Wed Oct 26 16:30:31 2011 -0400 @@ -19,7 +19,9 @@ import org.csstudio.opibuilder.preferences.PreferencesHelper; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.gef.GraphicalViewer; import org.eclipse.jface.operation.IRunnableWithProgress; +import org.eclipse.swt.graphics.Image; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IPathEditorInput; import org.eclipse.ui.PlatformUI; @@ -31,7 +33,8 @@ public class ResourceUtilSSHelperImpl extends ResourceUtilSSHelper{ private static InputStream inputStream; private static Object lock = new Boolean(true); - + private static final String NOT_IMPLEMENTED = + "This method has not been implemented yet for RAP"; /** * Return the {@link InputStream} of the file that is available on the @@ -168,6 +171,11 @@ @Override public IPath workspacePathToSysPath(IPath path) { return null; + } + + @Override + public Image getScreenShotImage(GraphicalViewer viewer) { + throw new RuntimeException(NOT_IMPLEMENTED); } |