[jbosstools-commits] JBoss Tools SVN: r43684 - in trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core: util and 1 other directory.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Sep 14 04:24:03 EDT 2012


Author: rob.stryker at jboss.com
Date: 2012-09-14 04:24:02 -0400 (Fri, 14 Sep 2012)
New Revision: 43684

Added:
   trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/IDeployableServerBehaviour.java
   trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/IJBossServer.java
   trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ProgressMonitorUtil.java
Log:
JBIDE-12613 prep work

Added: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/IDeployableServerBehaviour.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/IDeployableServerBehaviour.java	                        (rev 0)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/IDeployableServerBehaviour.java	2012-09-14 08:24:02 UTC (rev 43684)
@@ -0,0 +1,7 @@
+package org.jboss.ide.eclipse.as.core.server;
+
+import org.eclipse.wst.server.core.model.IModuleFile;
+
+public interface IDeployableServerBehaviour {
+	public boolean changedFileRequiresModuleRestart(IModuleFile mf);
+}

Added: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/IJBossServer.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/IJBossServer.java	                        (rev 0)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/IJBossServer.java	2012-09-14 08:24:02 UTC (rev 43684)
@@ -0,0 +1,5 @@
+package org.jboss.ide.eclipse.as.core.server;
+
+public interface IJBossServer extends IDeployableServer {
+	public IJBossServerRuntime getRuntime();
+}

Added: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ProgressMonitorUtil.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ProgressMonitorUtil.java	                        (rev 0)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ProgressMonitorUtil.java	2012-09-14 08:24:02 UTC (rev 43684)
@@ -0,0 +1,29 @@
+package org.jboss.ide.eclipse.as.core.util;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.SubProgressMonitor;
+
+public class ProgressMonitorUtil {
+
+	public static class CustomSubProgress extends SubProgressMonitor {
+		public CustomSubProgress(IProgressMonitor monitor, int ticks, int style) {
+			super(monitor, ticks, style);
+		}
+		public void beginTask(String name, int totalWork) {
+			super.beginTask(null, totalWork);
+			setTaskName(name);
+		}
+	}
+	
+	public static IProgressMonitor getSubMon(IProgressMonitor parent, int ticks) {
+		IProgressMonitor subMon = new CustomSubProgress(parent, ticks, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK);
+		return subMon;
+	}
+	
+	public static IProgressMonitor getMonitorFor(IProgressMonitor monitor) {
+		if (monitor == null)
+			return new NullProgressMonitor();
+		return monitor;
+	}
+}



More information about the jbosstools-commits mailing list