Permalink
Browse files

[383094] during publish, Run On Server action should be adaptable

to String and not only shell
  • Loading branch information...
1 parent b48bfd4 commit 247d4bfae88b649d55c6feb21f27362eff325084 @elsony elsony committed Jan 16, 2013
@@ -1,5 +1,5 @@
/**********************************************************************
- * Copyright (c) 2003, 2012 IBM Corporation and others.
+ * Copyright (c) 2003, 2013 IBM Corporation 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
@@ -207,7 +207,9 @@ protected void run() {
public Object getAdapter(Class adapter) {
if (Shell.class.equals(adapter))
return shell;
- return null;
+ if (String.class.equals(adapter))
+ return "user";
+ return null;
}
};
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2011 IBM Corporation and others.
+ * Copyright (c) 2005, 2013 IBM Corporation 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
@@ -118,6 +118,8 @@ public void run(IProgressMonitor monitor) {
public Object getAdapter(Class adapter) {
if (Shell.class.equals(adapter))
return shell;
+ if (String.class.equals(adapter))
+ return "user";
return null;
}
};

0 comments on commit 247d4bf

Please sign in to comment.