Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-08-20 11:00:45 -0400
committerMichael Valenta2004-08-20 11:00:45 -0400
commitf374a126096643a5da9a2b4bb35fb5abf1cf6637 (patch)
tree03546e81d9c11954fec773246b1491ddbfc9c1eb /examples
parente1e24cdfbfbaebd69e0d318fdc91d608d67ff045 (diff)
downloadeclipse.platform.team-f374a126096643a5da9a2b4bb35fb5abf1cf6637.tar.gz
eclipse.platform.team-f374a126096643a5da9a2b4bb35fb5abf1cf6637.tar.xz
eclipse.platform.team-f374a126096643a5da9a2b4bb35fb5abf1cf6637.zip
Bug 61255 reduce deprecation warnings for core.runtime.compatibility
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/FileSystemPropertiesPage.java9
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/ProjectSetSerializer.java2
2 files changed, 3 insertions, 8 deletions
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/FileSystemPropertiesPage.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/FileSystemPropertiesPage.java
index 309f98030..5db059449 100644
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/FileSystemPropertiesPage.java
+++ b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/FileSystemPropertiesPage.java
@@ -15,10 +15,7 @@ import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.team.core.RepositoryProvider;
+import org.eclipse.swt.widgets.*;
import org.eclipse.ui.dialogs.PropertyPage;
/*
* A property page which displays the file system specific properties
@@ -74,9 +71,7 @@ public class FileSystemPropertiesPage extends PropertyPage {
layout.marginHeight = layout.marginWidth = 0;
composite.setLayout(layout);
composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- IResource resource = getSelectedElement();
- RepositoryProvider provider = RepositoryProvider.getProvider(resource.getProject());
+
return composite;
}
}
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/ProjectSetSerializer.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/ProjectSetSerializer.java
index 04935f9f5..4d0316af8 100644
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/ProjectSetSerializer.java
+++ b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/ProjectSetSerializer.java
@@ -82,7 +82,7 @@ public class ProjectSetSerializer implements IProjectSetSerializer {
* @return
*/
private String asReference(FileSystemProvider provider) {
- return provider.getProject().getName() + "," + provider.getRoot().toString();
+ return provider.getProject().getName() + "," + provider.getRoot().toString(); //$NON-NLS-1$
}
/**

Back to the top